<%@ Page Language="C#" MasterPageFile="../main/ManagerMasterPage.master" AutoEventWireup="true" CodeFile="list.aspx.cs" Inherits="manager_template_list" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentBody" Runat="Server">
<asp:Panel ID="panel_search" runat="server" Visible="true" HorizontalAlign="Center" >
    <asp:Label ID="label_search" runat="server" Text="Keywords: "></asp:Label>
    <asp:TextBox ID="text_search" runat="server" ></asp:TextBox>
    <asp:ImageButton ID="imagebutton_search" runat="server" ImageUrl="../../images/search.jpg" OnClick="goto_search" />
    <br />
    <asp:RadioButtonList ID="RadioButtonList1" runat="server" RepeatDirection="Horizontal">
        <asp:ListItem Selected="True">id</asp:ListItem>
        <asp:ListItem Value="TemplateName">Name</asp:ListItem>
        <asp:ListItem Value="Path">Path</asp:ListItem>
    </asp:RadioButtonList>
</asp:Panel>

<asp:Panel ID="panel_content" runat="server" >

    <asp:GridView ID="GridView1" runat="server" BackColor="#f1f1f1"
        AutoGenerateColumns="false" AllowPaging="true" PageSize="10" 
        ShowFooter="true" Font-Size="14px" Font-Names="Verdana" DataKeyNames="ID" GridLines="Both" BorderStyle="Outset "
        OnRowDataBound="GridView1_RowDataBound" OnRowCommand="GridView1_RowCommand" OnRowUpdating="GridView1_RowUpdating"
        OnRowUpdated="GridView1_RowUpdated" OnRowDeleting="GridView1_RowDeleting" OnRowEditing="GridView1_RowEditing"
        OnRowDeleted="GridView1_RowDeleted" AllowSorting="true" OnSorted="GridView1_Sorted" OnSorting="GridView1_Sorting" OnPageIndexChanging="GridView1_PageIndexChanging" OnRowCancelingEdit="GridView1_RowCancelingEdit" > 
        <RowStyle BackColor="Gainsboro" />
        <AlternatingRowStyle BackColor="White" />
        <HeaderStyle BackColor="#0083C1" ForeColor="White" />
        <FooterStyle BackColor="White" />        
        
        <Columns>       
           <asp:TemplateField HeaderText="Site ID" SortExpression="ID">
                <ItemTemplate>
                    <asp:Label ID="label_ID" Text='<%# Eval("ID") %>' runat="server" ></asp:Label>
                </ItemTemplate>
                <EditItemTemplate>
                    <asp:Label ID="label_ID" Text='<%# Eval("ID") %>' runat="server" ></asp:Label>
                </EditItemTemplate>  
                
            </asp:TemplateField>
            <asp:TemplateField HeaderText="TemplateName" SortExpression="TemplateName">
                <ItemTemplate>
                    <asp:Label ID="label_TemplateName" Text='<%# Eval("TemplateName") %>' runat="server" ></asp:Label>
                </ItemTemplate>
                <EditItemTemplate>
                    <asp:Label ID="label_TemplateName" Text='<%# Eval("TemplateName") %>' runat="server" ></asp:Label>
                </EditItemTemplate>

                
            </asp:TemplateField>
            
            <asp:TemplateField HeaderText="Path" SortExpression="Path">
                <ItemTemplate>
                    <asp:Label ID="label_Path" runat="server" Text='<%# Eval("Path") %>'></asp:Label>
                </ItemTemplate>
                <EditItemTemplate>
                    <asp:Label ID="label_Path" runat="server" Text='<%# Eval("Path") %>'></asp:Label>
                </EditItemTemplate>

            </asp:TemplateField>
            
           
<%--            <asp:TemplateField HeaderText="Active" >
                <ItemTemplate>
                    <asp:CheckBox ID="checkbox_active" runat="server" AutoPostBack="true" Checked='<%# Eval("ActiveFlag") %>' OnCheckedChanged="checkbox_changed" />
                </ItemTemplate>
            
            </asp:TemplateField>--%>
            
            <asp:CommandField HeaderText="Edit" ShowEditButton="true" />
            <asp:TemplateField HeaderText="Delete" >
                <ItemTemplate>
                    <asp:LinkButton ID="link_delete" runat="server" CommandName="Delete">Delete</asp:LinkButton>
                </ItemTemplate>

            </asp:TemplateField>
        </Columns>
        
    </asp:GridView>

</asp:Panel>
</asp:Content>

